package app.server.project.main.service.dto.rank;

import lombok.Data;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;

import java.util.List;

@Data
@RequiredArgsConstructor(staticName = "of")
public class RankResp {

    @NonNull
    private List<RankDto> ranks;
    /**
     * 当前每次,不上榜为0
     */
    @NonNull
    private int myPos;
    /**
     * 当前数值
     */
    @NonNull
    private String myVal;
    @NonNull
    private String rate;

    /**
     * 活动链接
     */
    private String taskUrl;

    /**
     * 跳转链接
     */
    private String jumpUrl;
    /**
     * 日榜倒计时
     */
    private String countdownDay;
    /**
     * 周榜倒计时
     */
    private String countdownWeek;


    public void setExtInfo(String taskUrl, String jumpUrl, String countdownDay, String countdownWeek) {
        this.taskUrl = taskUrl;
        this.jumpUrl = jumpUrl;
        this.countdownDay = countdownDay;
        this.countdownWeek = countdownWeek;
    }
}
